package com.link.base.base.fund.service;

import com.link.base.base.fund.model.DealerAccount;
import com.link.core.basic.service.BasicService;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/12 10:11
 * @version 1.0
 */

public interface DealerAccountService extends BasicService<DealerAccount> {

    /**
     * <p>查询账户在某段时间内期初期末余额</p>
     *
     * @author yrf
     * @param dealerAccount
     * @return
     */
    public List<DealerAccount> queryByPeriod(DealerAccount dealerAccount);

    /**
     * 删除指定的用户的资金账户
     * @author huanglongjian
     * @param dealerAccount
     * @return
     * @throws Exception
     */
    public List<DealerAccount> queryByAccountId(DealerAccount dealerAccount) throws Exception;

    /**
     * @param dealerAccount 资金账户对象
     * @return 资金账户列表
     * @throws Exception 报错
     */
    public DealerAccount queryItemSumByTypeAndAccntId(DealerAccount dealerAccount) throws Exception;

    /**
     * 更新一条数据
     *
     * @param entity 资金账户对象
     * @throws Exception 报错
     */
    public void updateAmount(DealerAccount entity) throws Exception;
}
